﻿@model IEnumerable<CircleCut.Models.Output>

@{
    ViewBag.Title = "Patterns";
}

<h2 style="color:yellowgreen;text-align:center">方案列表</h2>

<p>
    @Html.ActionLink("新增 方案", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Number)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PatternNum)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TotalPlateNum)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.delta)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.beta)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.e)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.p)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UtilizationRate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Time)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Number)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PatternNum)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TotalPlateNum)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.delta)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.beta)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.e)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.p)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UtilizationRate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Time)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.ID }) |
            @Html.ActionLink("详情", "Details", new { id=item.ID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
